package com.yl.principles.demo2.after;

/**
 * @Author 小羊
 * @Date 29/10/2024下午 3:38
 * @ClassName Rectangle
 * @Description 长方形类
 */
public class Rectangle implements Quadrilateral{
    private double length;
    private double width;

    public void setLength(double length) {
        this.length = length;
    }

    public void setWidth(double width) {
        this.width = width;
    }

    @Override
    public double getLength() {
        return length;
    }

    @Override
    public double getWidth() {
        return width;
    }
}
